//
//  WDNetworkRequestObject.h
//  WDLogicBehind
//
//  Created by Alean on 2022/12/1.
//

#import "WDNetworkBaseObject.h"
#import "AFNetworking.h"

NS_ASSUME_NONNULL_BEGIN

@interface WDNetworkRequestObject : WDNetworkBaseObject

- (void)sendRequestWithPath:(NSString *)path
                     method:(RequestMethod)method
                 parameters:(NSDictionary *)parameters
                    success:(SuccessBlock)successBlock
                    failure:(FailureBlock)failuerBlock;

- (void)sendPostRequestWithPath:(NSString *)path
                     paremeters:(NSDictionary *)parameters
      constructingBodyWithBlock:(void (^)(id<AFMultipartFormData> _Nonnull))multipartFormBlock
                        success:(SuccessBlock)successBlock
                        failure:(FailureBlock)failuerBlock;

- (void)cancel;

@end

NS_ASSUME_NONNULL_END
